[backend 22] Implement Authentication Middleware And

[backend 22] Implement Authentication Middleware And